function fnOnFocus(tipe,cRow) {
    if (tipe=='kategori') {
        document.getElementById("row_" + cRow).style.backgroundColor="blue";
        document.getElementById("lbl_" + cRow).style.color="beige";
        document.getElementById("lbl_" + cRow).style.fontWeight="bold";
    } else if (tipe=='info') {
        document.getElementById("rowInfo_" + cRow).style.backgroundColor="blue";
        document.getElementById("lblInfo_" + cRow).style.color="beige";
        document.getElementById("lblInfo_" + cRow).style.fontWeight="bold";
    } else if (tipe=='link') {
        document.getElementById("rowLink_" + cRow).style.backgroundColor="blue";
        document.getElementById("lblLink_" + cRow).style.color="beige";
        document.getElementById("lblLink_" + cRow).style.fontWeight="bold";
    }
}
function fnOnBlur(tipe,cRow) {
    if (tipe=='kategori') {
        document.getElementById("row_" + cRow).style.backgroundColor="beige";
        document.getElementById("lbl_" + cRow).style.color="";
        document.getElementById("lbl_" + cRow).style.fontWeight="";
    } else if (tipe=='info') {
        document.getElementById("rowInfo_" + cRow).style.backgroundColor="beige";
        document.getElementById("lblInfo_" + cRow).style.color="";
        document.getElementById("lblInfo_" + cRow).style.fontWeight="";
    } else if (tipe=='link') {
        document.getElementById("rowLink_" + cRow).style.backgroundColor="beige";
        document.getElementById("lblLink_" + cRow).style.color="";
        document.getElementById("lblLink_" + cRow).style.fontWeight="";
    }
}
function fnClickKategori(kategori) {
    document.getElementById('hidKategori').value = kategori;
    document.main_form.method = 'POST';
    document.main_form.action = 'logic/getBrgByKategori.php';
    document.main_form.submit();
}
function fnLogin() {
    document.main_form.method = 'POST';
    document.main_form.action = 'logic/loginAction.php';
    document.main_form.submit();
}
function fnCancel() {
    alert('cancel!');
}
function fnKirim() {
    document.main_form.method = 'POST';
    document.main_form.action = 'logic/sendMail.php';
    document.main_form.submit();
}
function fnClickInfo(info) {
    document.getElementById('hidInfo').value = info;
    document.main_form.method = 'POST';
    document.main_form.action = 'logic/getInformasi.php';
    document.main_form.submit();
}